package cn.tedu.ximart.server.ex;

/**
 * @
 */
public class ServiceException extends RuntimeException {
    private int serviceCode;

    public int getServiceCode() {
        return serviceCode;
    }

    public ServiceException() {
    }

    public ServiceException(int serviceCode, String message) {
        super(message);
        this.serviceCode = serviceCode;
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(Throwable cause) {
        super(cause);
    }

    public ServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
